package com.example.batch.mapper;

import com.example.batch.model.TMission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * MyBatis Mapper：t_mission 表操作
 */
@Mapper
public interface TMissionMapper {

    List<TMission> selectByBatchId(@Param("batchId") String batchId);

    TMission selectById(@Param("id") Long id);

    int insert(TMission mission);

    int updateProgressAndStatus(TMission mission);
}
